package cn.mesmile.drools.service;

import cn.mesmile.drools.entity.Calculation;
import cn.mesmile.drools.entity.CreditCardApplyInfo;
import cn.mesmile.drools.entity.InsuranceInfo;
import cn.mesmile.drools.utils.KieSessionUtils;
import org.kie.api.runtime.KieSession;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zb
 * @date 2021/7/25 23:58
 * @Description
 */
public interface RulesService {

    /**
     * 调用规则
     */
    void rule();

    /**
     * 计算税后工资
     */
    Calculation calculate(Calculation calculation);


    /**
     *  调用Drools规则引擎实现信用卡申请
     * @param creditCardApplyInfo
     * @return
     */
    CreditCardApplyInfo creditCardApply(CreditCardApplyInfo creditCardApplyInfo);


    /**
     *  保险
     * @param insuranceInfo
     * @return
     */
    List<String> insuranceInfoCheck(InsuranceInfo insuranceInfo) throws Exception;
}
